//
//  EWEPlayer.h
//  Auscultation
//
//  Created by 来 on 2020/12/6.
//

#import <Foundation/Foundation.h>
#import "EWEDataPlayer.h"

NS_ASSUME_NONNULL_BEGIN

#define EVERY_READ_LENGTH 400 //每次从PCM文件读取的长度

@interface EWEPlayer : NSObject
{
    EWEDataPlayer* player;
    dispatch_source_t sendDataTimer;
    NSInteger iii;
    BOOL isPause;
}

@property (strong, nonatomic) NSMutableData *datas;
@property (strong, nonatomic) NSMutableData *fdatas;
@property (copy, nonatomic) void (^pausePlayer)(void);
@property (copy, nonatomic) void (^startPlayer)(void);

- (void)play;
- (void)stop;
- (void)pause;
- (void)resume;
- (void)clearData;
@end

NS_ASSUME_NONNULL_END
